﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Infrastructure.Pluralization.Interfaces;

namespace Infrastructure.Pluralization
{
    internal class EventWordRussianPluralization : IEventWordPluralizationStrategy
    {
        private const string SingleForm = "событие";
        private const string From2To4Form = "события";
        private const string MoreThan4Form = "событий";

        public string Pluralize(int count)
        {
            if (count < 0)
                throw new ArgumentException("count parameter value should be more than 0");

            if (count == 1)
                return SingleForm;
            else if (count >= 2 && count <= 4)
                return From2To4Form;
            else
                return MoreThan4Form;
        }
    }
}
